package com.spring.extjs.pageModel;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 定义了登录人员与界面的交互类 2015年2月28日 下午9:30:02
 *
 * @author chen jie
 * @version
 *
 */
public class UserVO {

	/** 主键 */
	private Integer id;
	/** 状态 默认为有效。0：失效 */
	private Integer state = 1; //
	/** 用户昵称 */
	private String nickname;
	/** 登录的用户名 */
	private String username;
	/** 真实姓名 */
	private String realname;
	/** 年龄 */
	private Integer age;
	/** 出生日期 */
	private Date birthday;
	/** 性别 */
	private String gender;
	/** 手机号码 */
	private String phoneNumber;
	/** 电子邮箱 */
	private String email;
	/** 家庭住址 */
	private String address;
	/** 身份号码 */
	private String idcard;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

}
